package com.liuda066.feign.client;

import com.liuda066.feign.config.DefaultFeignConfiguration;
import com.liuda066.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2023/7/19 16:44
 */
@FeignClient(value = "userservice",configuration = DefaultFeignConfiguration.class)
public interface UserClient {
    @GetMapping("/user/{id}")
    User findById(@PathVariable("id") Long id);
}
